package com.tsxy.mall.controller.api;

import com.tsxy.mall.service.BookSortService;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import javax.annotation.Resource;
import java.util.List;

@RestController
@RequestMapping("/api/bookSort")
public class ApiBookSortController {
    @Resource
    private BookSortService bookSortService;

    @GetMapping("/getAll")
    public List getAllSortCludeBook(){
        return bookSortService.getAllSortCludeBook();
    }

    @GetMapping("/getSort")
    public List getSort(){
        return bookSortService.getAllSort();
    }
    
}
